# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.
#
# Old Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>

pkgname=python-connexion
_pkgname=connexion
pkgver=2.14.2
pkgrel=4
pkgdesc='Swagger/OpenAPI First framework for Python on top of Flask with automatic endpoint validation & OAuth2 support.'
arch=('any')
url='https://github.com/zalando/connexion'
license=('Apache')
depends=('python-clickclick' 'python-jsonschema' 'python-pyaml'
         'python-requests' 'python-inflection' 'python-openapi-spec-validator'
         'python-flask' 'python-packaging' 'python-werkzeug'
         'python-importlib-metadata')
optdepends=('python-aiohttp: AIOHTTP backend'
            'python-ujson: Faster JSON parsing'
            'python-swagger-ui-bundle: Swagger UI (web UI for the API) support')
makedepends=('python-setuptools' 'flake8')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha512sums=('ca6d8524bf93a76fd2a50f7bd11797670994d74848ed94c29f5b54a980a7f8a1d84cc6c9301e0b921322559a0fd4d66584046893dbbff948be1ad6f0ced29a53')

build() {
  cd $_pkgname-$pkgver

  python setup.py build
}

package() {
  cd $_pkgname-$pkgver

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

